:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --accent-color: #f5a300;
  --section-bg: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* Cabeçalho */
.site-header {
  background: #000000;
  border-bottom: none;
  padding: 15px 0;
  position: relative;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 45px;
  width: auto;
  filter: brightness(0) invert(1);
}

.site-header nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
}

.site-header nav a {
  color: #ffffff;
  font-size: 0.95em;
  font-weight: 600;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-header nav a:hover {
  color: var(--accent-color);
}

/* Menu Hamburger (inicialmente oculto) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 3px 0;
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Botões */
.primary-btn,
.secondary-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.primary-btn {
  background-color: var(--accent-color);
  color: #fff;
}

.primary-btn:hover {
  background-color: #d88f00;
}

.secondary-btn {
  border: 2px solid var(--text-color);
  background-color: transparent;
  color: var(--text-color);
}

.secondary-btn:hover {
  background-color: var(--text-color);
  color: #fff;
}

/* Hero Section */
.hero-project {
  background-image: url("../assets/Fachada Aconchego - Mockup.png");
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 2rem;
}

.hero-project::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.60);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content img.hero-logo {
  max-width: 100%;
  max-height: 700px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Títulos */
section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Seções com caixas arredondadas */
.about-section,
.application-section,
.contact-faq,
.palette-section {
  background-color: var(--section-bg);
  border-radius: 12px;
  padding: 3rem 2rem;
  margin: 3rem auto;
  width: 95%;
  max-width: 1200px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Galeria de Mockups */
.mockup-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  justify-items: center;
  width: 100%;
}

.mockup-grid img {
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  width: 100%;
}

.mockup-grid img:hover {
  transform: scale(1.03);
}

/* Cards de Aplicações Visuais */
.application-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  margin-top: 2rem;
}

.application-cards .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  max-width: 250px;
  width: 100%;
  transition: transform 0.3s ease;
}

.application-cards .card:hover {
  transform: translateY(-5px);
}

.application-cards .card img {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.application-cards .card p {
  font-weight: 700;
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  font-size: 1rem;
}

/* Paleta de Cores */
.color-palette {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.color-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: bold;
  color: var(--text-color);
}

.color-chip {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background-color: var(--cor);
  margin-bottom: 0.5rem;
}

.color-chip.border {
  border: 1px solid #ccc;
}

.color-box p {
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
}

.color-box span {
  font-weight: normal;
  font-size: 0.8rem;
  color: #666;
}

/* Contato e FAQ */
.contact-faq {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.contact-form,
.faq {
  flex: 1 1 45%;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
}

.contact-form button {
  align-self: flex-start;
}

/* Rodapé */
.site-footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

/* Botão Voltar ao Topo */
#btnTopo {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 50px;
  text-align: center;
  cursor: pointer;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, transform 0.3s ease;
}

#btnTopo:hover {
  background: #d88f00;
  transform: scale(1.1);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  margin: 1rem auto;
  z-index: 2;
}

/* Setas laterais do Lightbox */
.lightbox .nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(-50%);
  padding: 0 2rem;
  z-index: 5;
}

.lightbox .nav button {
  background: none;
  border: none;
  font-size: 4rem;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lightbox .nav button:hover {
  transform: scale(1.2);
}

.close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.close-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

/* ========== MEDIA QUERIES - RESPONSIVIDADE ========== */

/* Tablets */
@media (max-width: 1024px) {
  .container {
    width: 95%;
    padding: 0 15px;
  }

  .hero-project {
    height: 80vh;
  }

  .hero-content img.hero-logo {
    max-height: 500px;
  }

  .mockup-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .application-cards {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Tablets Portrait */
@media (max-width: 768px) {
  /* Header responsivo */
  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 20px 0;
  }
  
  .site-header nav.active {
    display: block;
  }
  
  .site-header nav ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .menu-toggle {
    display: flex;
  }

  .hero-project {
    height: 70vh;
    min-height: 400px;
    padding: 1.5rem;
  }

  .hero-content img.hero-logo {
    max-height: 350px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .primary-btn,
  .hero-buttons .secondary-btn {
    width: 100%;
    max-width: 250px;
  }

  section h2 {
    font-size: 1.6rem;
  }

  .about-section,
  .application-section,
  .contact-faq,
  .palette-section {
    padding: 2rem 1.5rem;
    margin: 2rem auto;
  }

  .mockup-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .application-cards {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
  }

  .application-cards .card {
    padding: 1.5rem;
  }

  .color-palette {
    gap: 1.5rem;
  }

  .color-chip {
    width: 60px;
    height: 60px;
  }

  .contact-faq {
    flex-direction: column;
  }

  .contact-form,
  .faq {
    flex: 1 1 100%;
  }

  .lightbox .nav {
    padding: 0 1rem;
  }

  .lightbox .nav button {
    font-size: 2.5rem;
  }
}

/* Smartphones */
@media (max-width: 480px) {
  .container {
    width: 100%;
    padding: 0 10px;
  }

  .logo-img {
    height: 35px;
  }

  .hero-project {
    height: 60vh;
    min-height: 350px;
    padding: 1rem;
  }

  .hero-content img.hero-logo {
    max-height: 250px;
  }

  .hero-buttons .primary-btn,
  .hero-buttons .secondary-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  section h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }

  .about-section,
  .application-section,
  .contact-faq,
  .palette-section {
    padding: 1.5rem 1rem;
    margin: 1.5rem auto;
    width: 100%;
  }

  .mockup-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .application-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .application-cards .card {
    padding: 1.2rem;
  }

  .color-palette {
    gap: 1rem;
  }

  .color-chip {
    width: 50px;
    height: 50px;
  }

  .color-box p {
    font-size: 0.8rem;
  }

  .color-box span {
    font-size: 0.7rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  .contact-form button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  #btnTopo {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    line-height: 40px;
    bottom: 1rem;
    right: 1rem;
  }

  .lightbox img {
    max-width: 95%;
    max-height: 70%;
  }

  .lightbox .nav {
    padding: 0 0.5rem;
  }

  .lightbox .nav button {
    font-size: 2rem;
  }

  .close-btn {
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
  }
}

/* Smartphones muito pequenos */
@media (max-width: 320px) {
  .hero-project {
    height: 50vh;
    min-height: 300px;
  }

  .hero-content img.hero-logo {
    max-height: 200px;
  }

  section h2 {
    font-size: 1.2rem;
  }

  .about-section,
  .application-section,
  .contact-faq,
  .palette-section {
    padding: 1rem 0.8rem;
  }

  .application-cards .card {
    padding: 1rem;
  }

  .color-chip {
    width: 40px;
    height: 40px;
  }
}
